﻿using System;
using System.Collections.Generic;

using System.Text;

namespace MT.eVotePRS.Model
{
    public class HandsetData
    {
        byte _StartByte = new byte();
        byte _CommandCode = new byte();
        int _StringLength = 0;
        string _DataString = string.Empty;
        byte _EndCode = new byte();
        string _MacStr = string.Empty;
        string _UserID = string.Empty;

        // 0x13 
        byte _LockFlag = new byte();
        byte _BellOn = new byte();
        byte[] _RemoteID = new byte[2];

        // ExamData 0x69
        string _QuestionNum = string.Empty;
        string _PaperNum = string.Empty;
        string _Answer = string.Empty;
        // teacher send string 0x67
        byte _CheckSum = new byte();
        byte _SendCounter = new byte();

        public byte StartByte
        {
            get { return _StartByte; }
            set { _StartByte = value; }
        }
        public byte CommandCode
        {
            get { return _CommandCode; }
            set { _CommandCode = value; }
        }
        public int StringLength
        {
            get { return _StringLength; }
            set { _StringLength = value; }
        }
        public String DataString
        {
            get { return _DataString; }
            set { _DataString = value; }
        }
        public byte EndCode
        {
            get { return _EndCode; }
            set { _EndCode = value; }
        }
        public string MacStr
        {
            get { return _MacStr; }
            set { _MacStr = value; }
        }
        public string UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }

        public byte LockFlag
        {
            get { return _LockFlag; }
            set { _LockFlag = value; }
        }
        public byte BellOn
        {
            get { return _BellOn; }
            set { _BellOn = value; }
        }
        public byte[] RemoteID
        {
            get { return _RemoteID; }
            set { _RemoteID = value; }
        }

        // ExamData 0x69
        public string QuestionNum
        {
            get { return _QuestionNum; }
            set { _QuestionNum = value; }
        }
        public string PaperNum
        {
            get { return _PaperNum; }
            set { _PaperNum = value; }
        }
        public string Answer
        {
            get { return _Answer; }
            set { _Answer = value; }
        }
        
        public byte CheckSum
        {
            get { return _CheckSum; }
            set { _CheckSum = value; }
        }
        public byte SendCounter
        {
            get { return _SendCounter; }
            set { _SendCounter = value; }
        }
    }
}
